 import {
     dec as Vue
 } from "../../main";
 const rules = {
        device_id: [{
                required: true,
                message: '请输入设备编号',
                trigger: 'blur'
            },
            {
                min: 3,
                max: 5,
                message: '长度在 3 到 5 个字符',
                trigger: 'blur'
            }
        ],
        qrcode: [{
            required: true,
            message: '请输入二维码编号',
            trigger: 'blur'
        }, ],
        addDevTypeVal: [{
            type: 'date',
            required: true,
            message: '请选择设备型号',
            trigger: 'change'
        }],
         agent_name: [{
             required: true,
             message: '请选择所属代理商',
             trigger: 'blur'
         }, ],
    }
   const clear = ()=>{
      
        console.log(this)
   }
   
   export const Mixins = {
       data() {
           return {
               rules
           }
       },
       methods: {
           clear
       }
   }